Optimal. Leaf size=199 \[ -\frac{b (A b-a B)}{2 (a+b x)^2 (b d-a e)^3}-\frac{b (2 a B e-3 A b e+b B d)}{(a+b x) (b d-a e)^4}-\frac{e (a B e-3 A b e+2 b B d)}{(d+e x) (b d-a e)^4}-\frac{e (B d-A e)}{2 (d+e x)^2 (b d-a e)^3}-\frac{3 b e \log (a+b x) (a B e-2 A b e+b B d)}{(b d-a e)^5}+\frac{3 b e \log (d+e x) (a B e-2 A b e+b B d)}{(b d-a e)^5} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.491061, antiderivative size = 199, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.05 \[ -\frac{b (A b-a B)}{2 (a+b x)^2 (b d-a e)^3}-\frac{b (2 a B e-3 A b e+b B d)}{(a+b x) (b d-a e)^4}-\frac{e (a B e-3 A b e+2 b B d)}{(d+e x) (b d-a e)^4}-\frac{e (B d-A e)}{2 (d+e x)^2 (b d-a e)^3}-\frac{3 b e \log (a+b x) (a B e-2 A b e+b B d)}{(b d-a e)^5}+\frac{3 b e \log (d+e x) (a B e-2 A b e+b B d)}{(b d-a e)^5} \]
Antiderivative was successfully verified.
[In] Int[(A + B*x)/((a + b*x)^3*(d + e*x)^3),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 116.923, size = 192, normalized size = 0.96 \[ - \frac{3 b e \left (2 A b e - B a e - B b d\right ) \log{\left (a + b x \right )}}{\left (a e - b d\right )^{5}} + \frac{3 b e \left (2 A b e - B a e - B b d\right ) \log{\left (d + e x \right )}}{\left (a e - b d\right )^{5}} + \frac{b \left (3 A b e - 2 B a e - B b d\right )}{\left (a + b x\right ) \left (a e - b d\right )^{4}} + \frac{b \left (A b - B a\right )}{2 \left (a + b x\right )^{2} \left (a e - b d\right )^{3}} + \frac{e \left (3 A b e - B a e - 2 B b d\right )}{\left (d + e x\right ) \left (a e - b d\right )^{4}} - \frac{e \left (A e - B d\right )}{2 \left (d + e x\right )^{2} \left (a e - b d\right )^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((B*x+A)/(b*x+a)**3/(e*x+d)**3,x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.251137, size = 185, normalized size = 0.93 \[ \frac{-\frac{b (A b-a B) (b d-a e)^2}{(a+b x)^2}+\frac{e (b d-a e)^2 (A e-B d)}{(d+e x)^2}-\frac{2 b (b d-a e) (2 a B e-3 A b e+b B d)}{a+b x}+\frac{2 e (b d-a e) (-a B e+3 A b e-2 b B d)}{d+e x}-6 b e \log (a+b x) (a B e-2 A b e+b B d)+6 b e \log (d+e x) (a B e-2 A b e+b B d)}{2 (b d-a e)^5} \]
Antiderivative was successfully verified.
[In] Integrate[(A + B*x)/((a + b*x)^3*(d + e*x)^3),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.024, size = 380, normalized size = 1.9 \[ -{\frac{{e}^{2}A}{2\, \left ( ae-bd \right ) ^{3} \left ( ex+d \right ) ^{2}}}+{\frac{eBd}{2\, \left ( ae-bd \right ) ^{3} \left ( ex+d \right ) ^{2}}}+3\,{\frac{{e}^{2}Ab}{ \left ( ae-bd \right ) ^{4} \left ( ex+d \right ) }}-{\frac{{e}^{2}Ba}{ \left ( ae-bd \right ) ^{4} \left ( ex+d \right ) }}-2\,{\frac{bBde}{ \left ( ae-bd \right ) ^{4} \left ( ex+d \right ) }}+6\,{\frac{{b}^{2}{e}^{2}\ln \left ( ex+d \right ) A}{ \left ( ae-bd \right ) ^{5}}}-3\,{\frac{{e}^{2}b\ln \left ( ex+d \right ) Ba}{ \left ( ae-bd \right ) ^{5}}}-3\,{\frac{e{b}^{2}\ln \left ( ex+d \right ) Bd}{ \left ( ae-bd \right ) ^{5}}}+3\,{\frac{{b}^{2}Ae}{ \left ( ae-bd \right ) ^{4} \left ( bx+a \right ) }}-2\,{\frac{Bbae}{ \left ( ae-bd \right ) ^{4} \left ( bx+a \right ) }}-{\frac{{b}^{2}Bd}{ \left ( ae-bd \right ) ^{4} \left ( bx+a \right ) }}+{\frac{{b}^{2}A}{2\, \left ( ae-bd \right ) ^{3} \left ( bx+a \right ) ^{2}}}-{\frac{Bba}{2\, \left ( ae-bd \right ) ^{3} \left ( bx+a \right ) ^{2}}}-6\,{\frac{{b}^{2}{e}^{2}\ln \left ( bx+a \right ) A}{ \left ( ae-bd \right ) ^{5}}}+3\,{\frac{{e}^{2}b\ln \left ( bx+a \right ) Ba}{ \left ( ae-bd \right ) ^{5}}}+3\,{\frac{e{b}^{2}\ln \left ( bx+a \right ) Bd}{ \left ( ae-bd \right ) ^{5}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((B*x+A)/(b*x+a)^3/(e*x+d)^3,x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 1.40423, size = 1006, normalized size = 5.06 \[ -\frac{3 \,{\left (B b^{2} d e +{\left (B a b - 2 \, A b^{2}\right )} e^{2}\right )} \log \left (b x + a\right )}{b^{5} d^{5} - 5 \, a b^{4} d^{4} e + 10 \, a^{2} b^{3} d^{3} e^{2} - 10 \, a^{3} b^{2} d^{2} e^{3} + 5 \, a^{4} b d e^{4} - a^{5} e^{5}} + \frac{3 \,{\left (B b^{2} d e +{\left (B a b - 2 \, A b^{2}\right )} e^{2}\right )} \log \left (e x + d\right )}{b^{5} d^{5} - 5 \, a b^{4} d^{4} e + 10 \, a^{2} b^{3} d^{3} e^{2} - 10 \, a^{3} b^{2} d^{2} e^{3} + 5 \, a^{4} b d e^{4} - a^{5} e^{5}} - \frac{A a^{3} e^{3} +{\left (B a b^{2} + A b^{3}\right )} d^{3} +{\left (10 \, B a^{2} b - 7 \, A a b^{2}\right )} d^{2} e +{\left (B a^{3} - 7 \, A a^{2} b\right )} d e^{2} + 6 \,{\left (B b^{3} d e^{2} +{\left (B a b^{2} - 2 \, A b^{3}\right )} e^{3}\right )} x^{3} + 9 \,{\left (B b^{3} d^{2} e + 2 \,{\left (B a b^{2} - A b^{3}\right )} d e^{2} +{\left (B a^{2} b - 2 \, A a b^{2}\right )} e^{3}\right )} x^{2} + 2 \,{\left (B b^{3} d^{3} + 2 \,{\left (4 \, B a b^{2} - A b^{3}\right )} d^{2} e + 2 \,{\left (4 \, B a^{2} b - 7 \, A a b^{2}\right )} d e^{2} +{\left (B a^{3} - 2 \, A a^{2} b\right )} e^{3}\right )} x}{2 \,{\left (a^{2} b^{4} d^{6} - 4 \, a^{3} b^{3} d^{5} e + 6 \, a^{4} b^{2} d^{4} e^{2} - 4 \, a^{5} b d^{3} e^{3} + a^{6} d^{2} e^{4} +{\left (b^{6} d^{4} e^{2} - 4 \, a b^{5} d^{3} e^{3} + 6 \, a^{2} b^{4} d^{2} e^{4} - 4 \, a^{3} b^{3} d e^{5} + a^{4} b^{2} e^{6}\right )} x^{4} + 2 \,{\left (b^{6} d^{5} e - 3 \, a b^{5} d^{4} e^{2} + 2 \, a^{2} b^{4} d^{3} e^{3} + 2 \, a^{3} b^{3} d^{2} e^{4} - 3 \, a^{4} b^{2} d e^{5} + a^{5} b e^{6}\right )} x^{3} +{\left (b^{6} d^{6} - 9 \, a^{2} b^{4} d^{4} e^{2} + 16 \, a^{3} b^{3} d^{3} e^{3} - 9 \, a^{4} b^{2} d^{2} e^{4} + a^{6} e^{6}\right )} x^{2} + 2 \,{\left (a b^{5} d^{6} - 3 \, a^{2} b^{4} d^{5} e + 2 \, a^{3} b^{3} d^{4} e^{2} + 2 \, a^{4} b^{2} d^{3} e^{3} - 3 \, a^{5} b d^{2} e^{4} + a^{6} d e^{5}\right )} x\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)/((b*x + a)^3*(e*x + d)^3),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.236162, size = 1640, normalized size = 8.24 \[ \text{result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)/((b*x + a)^3*(e*x + d)^3),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 30.2583, size = 1431, normalized size = 7.19 \[ \text{result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x+A)/(b*x+a)**3/(e*x+d)**3,x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.256223, size = 617, normalized size = 3.1 \[ -\frac{3 \,{\left (B b^{2} d e + B a b e^{2} - 2 \, A b^{2} e^{2}\right )}{\rm ln}\left (\frac{{\left | 2 \, b x e + b d + a e -{\left | b d - a e \right |} \right |}}{{\left | 2 \, b x e + b d + a e +{\left | b d - a e \right |} \right |}}\right )}{{\left (b^{4} d^{4} - 4 \, a b^{3} d^{3} e + 6 \, a^{2} b^{2} d^{2} e^{2} - 4 \, a^{3} b d e^{3} + a^{4} e^{4}\right )}{\left | b d - a e \right |}} - \frac{6 \, B b^{3} d x^{3} e^{2} + 9 \, B b^{3} d^{2} x^{2} e + 2 \, B b^{3} d^{3} x + 6 \, B a b^{2} x^{3} e^{3} - 12 \, A b^{3} x^{3} e^{3} + 18 \, B a b^{2} d x^{2} e^{2} - 18 \, A b^{3} d x^{2} e^{2} + 16 \, B a b^{2} d^{2} x e - 4 \, A b^{3} d^{2} x e + B a b^{2} d^{3} + A b^{3} d^{3} + 9 \, B a^{2} b x^{2} e^{3} - 18 \, A a b^{2} x^{2} e^{3} + 16 \, B a^{2} b d x e^{2} - 28 \, A a b^{2} d x e^{2} + 10 \, B a^{2} b d^{2} e - 7 \, A a b^{2} d^{2} e + 2 \, B a^{3} x e^{3} - 4 \, A a^{2} b x e^{3} + B a^{3} d e^{2} - 7 \, A a^{2} b d e^{2} + A a^{3} e^{3}}{2 \,{\left (b^{4} d^{4} - 4 \, a b^{3} d^{3} e + 6 \, a^{2} b^{2} d^{2} e^{2} - 4 \, a^{3} b d e^{3} + a^{4} e^{4}\right )}{\left (b x^{2} e + b d x + a x e + a d\right )}^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)/((b*x + a)^3*(e*x + d)^3),x, algorithm="giac")
[Out]